function data = xml2img(fileName);
C = struct2cell(xml_read(fileName));

if ischar(C{1}.data)
   data = sscanf(C{1}.data,'%f')';
   data = data(:);
else
   data = C{1}.data';
   data = data(:);
end

rows = C{1}.rows;
cols = C{1}.cols;

data = reshape(data, rows, cols)';